package cn.gson.springboot.model.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gson.springboot.model.dao.DepartmentsDAO;
import cn.gson.springboot.model.pojos.DepartmentsPx;

@Service
@Transactional(rollbackFor=Exception.class)
public class DepartmentsPxserivce {
	@Autowired
	private DepartmentsDAO ds;
	
	//根据id查询实体
	public DepartmentsPx idkeshi(Integer departmentsId) {
		return ds.idkeshi(departmentsId);
	}
}
